package com.newasia.server.newasiaserver;

import com.newasia.server.common.dataSource.DynamicDataSourceRegister;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement
@Import(DynamicDataSourceRegister.class)
@MapperScan(basePackages = "com.newasia.server.dal")
@ComponentScan(basePackages = "com.newasia.server")
@SpringBootApplication
public class NewasiaServerApplication {

	public static void main(String[] args) {
		SpringApplication.run(NewasiaServerApplication.class, args);
	}

}
